<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<style>
</style>
<script>
var bcEditor;
$(function() {
	if(bcEditor){
		UE.delEditor('broadcast2_content');
	}
	
	bcEditor = UE.getEditor('broadcast2_content', {
		serverUrl: '<%=request.getContextPath()%>' + '/ueditor.do',
		initialFrameWidth: 1000,
		initialFrameHeight: 500,
		autoHeightEnabled: false,
		autoFloatEnabled: false,
		//enableAutoSave: false,
		saveInterval: 1000 * 60 * 60 * 24,
		toolbars: ue_toolbars
	});
	
});

function doBroadcast(jcntId){
	var form = new Object();
	form.title = $('#broadcast2_title').val();
	form.text = bcEditor.getContentTxt();
	form.html = bcEditor.getContent();
	checkAndPush(form, 'push/broadcast.json');
}

</script>
<div>
<input id="broadcast2_title" type="text" placeholder="标题" size="92"/><br/>
<div id="broadcast2_content"></div>
<input id="bc_send" type="button" value="发送" onclick="doBroadcast('#broadcast2_content');">
<input type="button" value="清空" onclick="bcEditor.execCommand('cleardoc')">
</div>
